<?php
class ArrayTools
{
	public static function removeByValue($array,$value)
	{
		foreach ($array as $key=>$v)
		{
			if((is_array($value)&&in_array($v,$value))||$value==$v)
				unset($array[$key]);
		}
		return $array;
	}
}
?>